﻿@using CoreData
@model Album
@{
    if (Model != null)
    {
        ViewBag.Title = Model.Name;
    }
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@section HeadResource{
    <title>@ViewBag.Title</title>
    <link rel="stylesheet" type="text/css" href="@Url.Content("~/Content/css/album.css")" />
}
@section BottomResource{
    <script type="text/javascript" src="@Url.Content("~/Content/js/album.js")"></script>
}
@section MainBanner{
    <div id="sliderMain">
        <div class="slide-item">
            <div class="slide-content">
                <h4 class="slide-title">
                    @if (Model != null)
                    {
                        <span>@Model.Name</span>
                    }
                </h4>
            </div>
            @if (Model != null)
            {
                <img src="/Media/Album/@Model.Image" alt="" />
            }
        </div>
    </div>
}
<div class="main-content child-page">
    <div class="col-small">
        <div class="module">
        @if (Model != null)
        {
            @Html.Action("_ListSmallAlbumRelation", "Album", new { id = Model.ID })
        }
        else { 
            @Html.Action("_ListSmallAlbumRelation", "Album", new { id = 0 })
        }
        </div>
    </div>
    <div class="col-content">
        @if (Model != null)
        {
            <div class="module">
                <div id="breadcrumbs">
                    <ul>
                        <li><a href="@Url.Action("Index", "Home")">Trang chủ</a><span class="raquo">»</span></li>
                        <li><a href="@Url.Action("Index", "Album")">Album ảnh</a><span
                            class="raquo">»</span></li>
                        <li><span>@Model.Name</span></li>
                    </ul>
                </div>
                <div class="album-content">
                    <div class="detail-thumbnail">
                        <a href="/Media/Album/@Model.Image" target="_blank"><img src="/Media/Album/@Model.Image" alt="" /></a>
                    </div>
                    <div class="album-inner-content">
                        @Html.Raw(Model.Name)
                    </div>
                </div>
            </div>
        }
    </div>
    <div class="clearfix">
    </div>
</div>
